import { _decorator, Component, Node } from 'cc';
import { PieceManagerBase } from './PieceManagerBase';
const { ccclass, property } = _decorator;

@ccclass('MaController')
export class MaController extends PieceManagerBase {
    canMoveOrAttck(): Promise<boolean> {
        return this.qipanController.canRangeMoveOrAttck(this, [1,2], true);
    }
    async showAllowedRoute(event: any) {
        if(!super.showAllowedRoute(event)) return;
        await this.canMoveOrAttck();
    }
}

